package com.example.uCenter.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.sql.Blob;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author hhl
 * @since 2022-08-29 08:38:53
 */
@Getter
@Setter
@TableName("app")
@ApiModel(value = "App对象", description = "")
public class App {

    @ApiModelProperty("应用id")
    @TableId(value = "app_id", type = IdType.AUTO)
    private Integer appId;

    @ApiModelProperty("应用名称")
    @TableField("app_name")
    private String appName;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("应用类型 normal普通类型，own 自己的应用")
    @TableField("app_type")
    private String appType;

    @ApiModelProperty("0表示可用，1表示审核中，2表示禁用")
    @TableField("state")
    private Integer state;

    @ApiModelProperty("逻辑删除标记 0表示正常，1表示删除")
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty("应用密钥")
    @TableField("app_secret")
    private String appSecret;

    @ApiModelProperty("回调地址")
    @TableField("callback_url")
    private String callbackUrl;

    @ApiModelProperty("应用图标")
    @TableField("app_icon")
    private Blob appIcon;

    @ApiModelProperty("应用描述")
    @TableField("app_description")
    private String appDescription;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

//    @TableField("1")
//    private String 1;
//
//    @TableField("2")
//    private String 2;
//
//    @TableField("3")
//    private String 3;
//
//    @TableField("4")
//    private String 4;
//
//    @TableField("5")
//    private String 5;


}
